let index = () => import('../views/index')
let login = () => import('../views/login')

const routes = [
  {
    path: '/',
    name: 'index',
    component: index,
    children: [
      { path: 'home', component: () => import('@/views/Home/home') },
      { path: 'shoptype', component: () => import('@/views/Home/shoptype') },
      { path: 'shop', component: () => import('@/views/Home/shop') },
      { path: 'admin', component: () => import('@/views/Home/admin') },
      { path: 'zhe', component: () => import('@/views/Home/zhe') },
      { path: 'zhu', component: () => import('@/views/Home/zhu') },
      { path: 'bing', component: () => import('@/views/Home/bing') },
      { path: 'rol', component: () => import('@/views/Home/rol') },


    ],
    redirect: '/home'
  },
  {
    path: '/login',
    name: 'login',
    component: login,
  },
]
export default routes